/**
 * Create in 2012-4-25.
 */
package kit4j.tests.jdk.swing;

import java.awt.Component;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 * 
 * @author MiniKnife
 *
 */
public abstract class SwingUtil {

	public static void showComponent(final Component com) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				JFrame frame = new JFrame();
				
				frame.setSize(300, 200);
				frame.setLayout(new FlowLayout());
				frame.add(com);
				frame.setVisible(true);
			}
		});
		
	}
}
